package com.heima.apis.wemedia;

/**
 * ClassName: IWemedia
 * Description:
 * date: 2023/8/25 0025 17:46
 *
 * @author zHan
 */

import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "leadnews-wemedia")
public interface IWemediaClient {

    /**
     * 查询自媒体用户
     * @param id
     * @return
     */
    @GetMapping("/api/v1/wemedia/{id}")
    ResponseResult getWmUser(@PathVariable Integer id);

    /**
     * 查询所有频道
     * @return
     */
    @GetMapping("/api/v1/channel/list")
    ResponseResult getChannels();
}
